package net.caixiaomi.info.model;

import android.text.TextUtils;

import net.caixiaomi.info.base.quickadapter.entity.MultiItemEntity;
import net.caixiaomi.info.util.Constants;

import java.util.List;

public class ArticleItem implements MultiItemEntity {

    private String addTime = "";
    private String articleId = "";
    private List<String> articleThumb;
    private String clickNumber = "";
    private String extendCat = "";
    private String keywords = "";
    private String link = "";
    private String listStyle = "";
    private String matchId = "";
    private String relatedTeam = "";
    private String summary = "";
    private String title = "";
    private String author = "";

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public List<String> getArticleThumb() {
        return articleThumb;
    }

    public void setArticleThumb(List<String> articleThumb) {
        this.articleThumb = articleThumb;
    }

    public String getClickNumber() {
        return clickNumber;
    }

    public void setClickNumber(String clickNumber) {
        this.clickNumber = clickNumber;
    }

    public String getExtendCat() {
        return extendCat;
    }

    public void setExtendCat(String extendCat) {
        this.extendCat = extendCat;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getListStyle() {
        return listStyle;
    }

    public void setListStyle(String listStyle) {
        this.listStyle = listStyle;
    }

    public String getMatchId() {
        return matchId;
    }

    public void setMatchId(String matchId) {
        this.matchId = matchId;
    }

    public String getRelatedTeam() {
        return relatedTeam;
    }

    public void setRelatedTeam(String relatedTeam) {
        this.relatedTeam = relatedTeam;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public int getItemType() {
        if (!TextUtils.isEmpty(listStyle)) {
            if (TextUtils.equals(listStyle, "0")) {
                return Constants.ITEM_NEWS_NO_IMAGE;
            } else if (TextUtils.equals(listStyle, "1")) {
                return Constants.ITEM_NEWS_ONE_IMAGE;
            } else if (TextUtils.equals(listStyle, "3")) {
                return Constants.ITEM_NEWS_THREE_IMAGE;
            } else if (TextUtils.equals(listStyle, "4")) {
                return Constants.ITEM_NEWS_VEDIO;
            }
        }
        return Constants.ITEM_NEWS_NO_IMAGE;
    }
}
